﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DK.ITree
{
    public interface ITree<TNode,TKey,TData> where TNode : TreeNode<TKey,TData> where TKey:IComparable
    {
        public TNode AddAndReplace(TKey key, TData data);
        public TNode? Remove(TKey key);
        public TNode? Get(TKey key);

    }
}
